#define IDC_LUADIALOGUESTRING 101
#define IDC_LUADIALOGUEVALUE 102
#define IDC_SLIDENUM	101
#define IDC_SLIDEDIR	102
#define IDC_SLIDEWRAP	103
#define CM_LAYERSLIDE	156
#define CM_PICKLAYER	155
#define CM_TOOLPILLARS	154
#define CM_TOOLREVEAL	153
#define CM_FILEIMPORTALT	152
#define CM_BRUSHRENAME  151
#define CM_BRUSHGRABBS	150
#define CM_BRUSHGRABNT	149
#define CM_TOOLRANGE	148
#define CM_LAYERCLEAR	137
#define IDC_IMPNUMWHERE	101
#define IDC_BRSHNAME	101
#define IDC_IMPNUMAMOUNT	102
#define IDC_GRABBSH	103
#define IDC_GRABBSM	104
#define IDC_GRABBSS	101
#define IDC_GRABBSW	102
#define IDC_SKINLAYER	101
#define IDC_SKINONOFF	102
#define IDC_SKINDARKEN	103
#define CM_LAYERONION	147
#define CM_TOOLZOOM4	146
#define CM_TOOLZOOM2	145
#define CM_TOOLZOOM1	144
#define IDC_APRVMODE	101
#define IDC_APRVDRBG	102
#define IDC_APRVDRFG1	103
#define IDC_APRVDRFG2	104
#define IDC_APRVDRFG3	105
#define IDC_APRVTRAN	106
#define IDC_APRVBSTR	107
#define IDC_APRVGFP 108
#define IDC_APRVLFP 109
#define IDC_APRVLFPS	110
#define IDC_INFOAUTH	101
#define IDC_INFOLNE1	102
#define IDC_INFOLNE2	103
#define IDC_INFOLNE3	104
#define IDC_INFONAME	105
#define IDC_INFOMAR	106
#define IDC_INFOBSTR	107
#define IDC_INFOANIM	108
#define IDC_INFOBRSH	109
#define IDC_INFOBGFX	110
#define IDC_INFOTOTAL	111
#define IDC_INFOFMPVER	112
#define IDC_INFOCKEY8	113
#define IDC_INFOCKEY24	114
#define IDC_INFOGAPY	115
#define IDC_INFOGAPX	116
#define IDC_INFOSTAGX	117
#define IDC_INFOSTAGY	118
#define IDC_INFOAGFX	119
#define IDC_INFOAGFXFREE	120
#define IDC_INFONOCACHE	121
#define IDC_INFOAGFXLOAD	122
#define IDC_INFOCLICKNUM	123
#define CM_TOOLREMOVEGRAPHICS	143
#define CM_TOOLREMOVEBLOCKS	142
#define CM_TOOLREMOVEANIMS	141
#define CM_BRUSHDESTROY	140
#define CM_TOOLANIMSETUP	139
#define CM_TOOLANIMPREVIEW	138
#define CM_EDITUNDO	135
#define CM_TOOLFILLRANDOM	210
#define CM_TOOLFILL	209
#define CM_TOOLINFO	134
#define CM_TOOLGRID	208
#define IDC_EXPORTCMA	101
#define IDC_EXPORTABD	102
#define IDC_EXPORTGFX	103
#define IDC_EXPORTMAR	104
#define IDC_EXPORTBMP	105
#define IDC_EXPORTROW	106
#define IDC_EXPORTSKIP	107
#define IDC_EXPORTNAME	108
#define IDC_EXPORTCSV	109
#define IDC_EXPORTSCR	110
#define CM_FILEEXPORT	133
#define CM_EDITRESIZE	132
#define IDC_RESIZEWIDTH	110
#define IDC_RESIZEHEIGHT	111
#define IDC_RESIZECENTER	112
#define IDC_RESIZE9	109
#define IDC_RESIZE8	108
#define IDC_RESIZE7	107
#define IDC_RESIZE6	106
#define IDC_RESIZE5	105
#define IDC_RESIZE4	104
#define IDC_RESIZE3	103
#define IDC_RESIZE2	102
#define IDC_RESIZE1	101
#define IDC_ANIMREF	101
#define IDC_ANIMTYPE	102
#define IDC_ANIMDELAY	103
#define IDC_ANIMFRAMES	104
#define IDC_ANIMPOINT	105
#define IDC_ANIMEPCUT	106
#define IDC_ANIMEPINS	107
#define IDC_PICKVIEW	101
#define IDC_PICKTEXT	102
#define IDC_PICKINFO	103
#define IDC_PROPVIEW	101
#define IDC_PROPUSER1	102
#define IDC_PROPUSER2	103
#define IDC_PROPUSER3	104
#define IDC_PROPUSER4	105
#define IDC_PROPUSER5	106
#define IDC_GLOBFROM	117
#define IDC_GLOBNEWFG	123
#define IDC_GLOBNEWFG2	124
#define IDC_GLOBNEWBG	122
#define IDC_GLOBINCR	128
#define IDC_GLOBTO	118
#define IDC_GLOBBGFG	119
#define IDC_GLOBFGFG2	121
#define IDC_GLOBBGFG2	120
#define IDC_PROPUSER6	107
#define IDC_PROPUSER7	108
#define IDC_PROPTL	109
#define IDC_PROPTR	110
#define IDC_PROPBL	111
#define IDC_PROPBR	112
#define IDC_PROPTRIGGER	113
#define IDC_GLOBAUTOBG	125
#define IDC_GLOBHEX	126
#define IDC_GLOBDEC	127
#define IDC_PROPDEC	127
#define IDC_PROPHEX	126
#define IDC_PROPUNUSED1	114
#define IDC_PROPUNUSED2	115
#define IDC_PROPUNUSED3	116
#define IDC_PROPPREV	117
#define IDC_PROPNEXT	118
#define IDC_PROPBG	119
#define IDC_PROPFG1	120
#define IDC_PROPFG2	121
#define IDC_PROPFG3	122
#define IDC_PROPNUM	123
#define CM_LAYER7	130
#define CM_LAYER6	129
#define CM_LAYER5	128
#define CM_LAYER4	127
#define CM_LAYER3	126
#define CM_LAYER2	125
#define CM_LAYER1	124
#define CM_LAYER0	123
#define CM_LAYERDELETE	122
#define CM_LAYERADD	121
#define CM_PICKBLOCK 207
#define CM_BLOCKNEXT	206
#define CM_BLOCKPREV	205
#define CM_ARROWRIGHT	203
#define CM_ARROWLEFT	202
#define CM_ARROWDOWN	201
#define CM_ARROWUP	200
#define CM_HELPABOUT	120
#define CM_HELPCONTENTS	119
#define CM_BRUSH16	315
#define CM_BRUSH15	314
#define CM_BRUSH14	313
#define CM_BRUSH13	312
#define CM_BRUSH12	311
#define CM_BRUSH11	310
#define CM_BRUSH10	309
#define CM_BRUSH9	308
#define CM_BRUSH8	307
#define CM_BRUSH7	306
#define CM_BRUSH6	305
#define CM_BRUSH5	304
#define CM_BRUSH4	303
#define CM_BRUSH3	302
#define CM_BRUSH2	301
#define CM_BRUSH1	300
#define CM_BRUSHGRAB	110
#define CM_EDITPASTE	109
#define CM_EDITCOPY	108
#define CM_EDITCUT	107
#define CM_EDITNEW	131
#define CM_FILEEXIT	106
#define CM_FILEIMPORT	105
#define CM_FILEIMPORTAT	136
#define CM_FILESAVEAS	104
#define CM_FILESAVE	103
#define CM_FILENEW	102
#define CM_FILEOPEN	101

#define IDC_NEWMAPWIDTH 103
#define IDC_NEWMAPHEIGHT 104
#define IDC_NEWMAPDEPTH 105
#define IDC_NEWMAPBLOCKWIDTH 106
#define IDC_NEWMAPBLOCKHEIGHT 107
#define IDC_NEWMAPNOTRECT	108
#define IDC_NEWMAPBLOCKGAPX	109
#define IDC_NEWMAPBLOCKGAPY	110
#define IDC_NEWMAPVERSION	111
#define IDC_NEWMAPBLOCKSTAGGERX	112
#define IDC_NEWMAPBLOCKSTAGGERY	113
#define IDC_NEWMAPADVANCED	114
#define IDC_NEWMAPTRUECOLOUR 115
#define IDC_NEWMAPPALETTED 116

#define SOBSTR 32		/* sizeof(BLKSTR) */
#define MAXBRSH 16
#define MAXBLKSTR 30000

